<include file="Common:layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>注册审核</h3>
                <h5>当开启注册审核时，会有此操作</h5>
            </div>
        </div>
    </div>

    <form action="{:U('Agent/agent_audit')}" method="post" class="form-horizontal" id="audit_agent">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label>上级代理</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{:GetAgentNameById($agent['parent_id'])}" disabled>
                    <p class="notic">上级代理不可修改</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>代理级别</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$agent['rank_name']}" disabled>
                    <p class="notic">代理级别不可修改</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>代理姓名</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$agent['agent_name']}" disabled>
                    <p class="notic">代理姓名不可修改</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>手机号</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$agent['mobile']}" disabled>
                    <p class="notic">手机号不可修改</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit" colspan="2">
                    <label><em>*</em>意向</label>
                </dt>
                <dd class="opt">
                    <div id="gcategory">
                        <select name="agree">
                            <option value="1">通过</option>
                            <option value="2">不通过</option>
                        </select>
                        <p class="notic">请填写审核意向</p>
                    </div>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>备注</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="remark" class="w300">
                    <p class="notic">请填写审核备注</p>
                </dd>
            </dl>
            <input type="hidden" name="agent_id" value="{$agent['agent_id']}"/>
            <div class="bot"><a id="submitBtn" class="ncap-btn-big ncap-btn-green" href="JavaScript:void(0);">确认提交</a></div>
        </div>
    </form>
</div>
<script>
    $(function(){
        $('#submitBtn').click(function () {
            $("#audit_agent").submit();
        });
    });
</script>
</body>
</html>